<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String ipath = request.getContextPath();
String ibasePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+ipath+"/";
%>
<style type="text/css">
.z5{
			margin: 0px 5px;
		}
		.one{
			display:block;
		}
		.one>.user{
			float:right;
		}
</style>
<!--位置导航-->
<ul class="breadcrumb one chearfix">
	<li>
		<a href="#"><span class="icon-book cheSpan"></span>汽车用品销售系统</a> <span class="divider blackAndStrong">&gt;</span>
	</li>
	<li class="active">
		${empty pageTitle?'功能页':pageTitle}
	</li>
	<li class="user">
	<c:choose>
		<c:when test="${empty admin}">
			<span class="label badge-important z5">当前未登录</span>
			<button class="btn btn-small btn-success z5"
				onclick="javascript:top.location.href='<%=ibasePath%>/admin/login';">
			登录</button>
		</c:when>
		<c:otherwise>
			<span class=" text-info z5">Admin</span>
			<span class="label badge-success z5">账号:</span>
			<span class=" text-info z5">${admin.id}</span>
			<span class="label badge-success z5">姓名:</span>
			<span class=" text-info z5">${admin.name}</span>
 				</c:otherwise>
	</c:choose>
	</li>
</ul>
